package com.engine.cn.agency;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ApprovalAspect {
    @Around("@annotation(com.engine.cn.agency.RequirePermission)")
    public Object checkPermission(ProceedingJoinPoint pip) {
        return null;
    }

    //对入参进行解密
    @Before("@annotation(com.engine.cn.agency.RequireDecrypt)")
    public Object decrypt(JoinPoint pip) {
        return null;
    }

    //成功返回后进行加密保存
    @AfterReturning("@annotation(com.engine.cn.agency.RequireEncrypt)")
    public Object encrypt(JoinPoint pip) {
        return null;
    }
}
